package com.golden.order02.util;

public class EncryptFactory {
	
	private static ThreadLocal<Encrypt> local = new ThreadLocal<Encrypt>();
	
	public static Encrypt getEncrypt(String type) {
		if(local.get() == null) {
			switch(type) {
				case "3DES" : Encrypt encrypt = new DESUtil(); local.set(encrypt); break;
			}
		}
		return local.get();
	}
}
